package com.liycloud.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 业务 订单表
 *
 */
@Data
@ApiModel(value = "订单")
@TableName("mall_order")
public class OrderEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private String id;

	/**
	 * 订单单号, 供客户查询
	 */
	@ApiModelProperty(value = "订单单号")
	private String orderNo;

	/**
	 * 订单结算状态
	 */
	@ApiModelProperty(value = "订单结算状态")
	private String orderStatus;

	/**
	 * 商店编号
	 */
	@ApiModelProperty(value = "商店编号")
	private String shopId;

	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
	private Integer userId;

	/**
	 * 租户ID
	 */
	@ApiModelProperty(value = "用户所属租户id")
	private Integer tenantId;


	/**
	 * 订单金额
	 */
	@ApiModelProperty(value = "订单金额")
	private Integer money;
}

